export const SELECT_DATA: string[] = ['交易单元', '日期', '时点'];
export const OPTION_KEY: Record<string, any> = {
  交易单元: 'unit',
  日期: 'date',
  时点: 'timeOrder',
};

export const UNIT_TYPE_OPTIONS = [
  { label: '全部', value: 0 },
  { label: '风电', value: 3 },
  { label: '光伏', value: 4 },
];
export const operators = {
  综合收入: { total: 'sum', point: 'any' },
  综合电量: { total: 'sum', point: 'any' },
  综合电价: { total: 'custom', point: 'any' },
  合约比例: { total: 'custom', point: 'custom' },
  电能电费: { total: 'sum', point: 'any' },
  电能电价: { total: 'custom', point: 'any' },
  中长期价差结算电费: { total: 'sum', point: 'any' },
  中长期电量: { total: 'sum', point: 'any' },
  中长期电价: { total: 'custom', point: 'any' },
  用户侧结算参考点电价: { total: 'custom', point: 'any' },
  现货电费: { total: 'sum', point: 'any' },
  计量电量: { total: 'sum', point: 'any' },
  实时节点电价: { total: 'custom', point: 'any' },
  回收费用: { total: 'sum', point: 'any' },
  补偿费用: { total: 'sum', point: 'any' },
  中长期电费: { total: 'sum', point: 'any' },
};

export const headerMap: any = {
  电能电费: 'comprehensiveElectricityBill',
  电能电价: 'energyPrice',
  综合电量: 'synthesizeQuantity',
  综合电价: 'synthesizeElectrovalence',
  中长期价差结算电费: 'mediumAndLongPower',
  中长期电量: 'mediumAndLongQuantity',
  中长期电价: 'mediumAndLongElectrovalence',
  用户侧结算参考点电价: 'wholeNetworkElectrovalence',
  现货电费: 'spotGoodsPower',
  计量电量: 'spotGoodsQuantity',
  实时节点电价: 'spotGoodsElectrovalence',
  结算均价: 'settlementAveragePrice',
  合约均价: 'averageContractPrice',
  回收费用: 'recoveries',
  补偿费用: 'compensationExpenses',
  综合收入: 'comprehensiveIncome',
  合约比例: 'contractRatio',
};
export const tableHead = [
  // 综合统计
  {
    field: 'comprehensiveIncome',
    name: '综合收入',
    width: 100,
    parentName: '综合统计',
  },
  {
    field: 'synthesizeQuantity',
    name: '综合电量',
    width: 100,
    parentName: '综合统计',
  },
  {
    field: 'synthesizeElectrovalence',
    name: '综合电价',
    width: 100,
    parentName: '综合统计',
  },
  {
    field: 'contractRatio',
    name: '合约比例',
    width: 100,
    parentName: '综合统计',
  },
  // 电费统计
  {
    field: 'comprehensiveElectricityBill',
    name: '电能电费',
    width: 100,
    parentName: '电费统计',
  },
  {
    field: 'energyPrice',
    name: '电能电价',
    width: 100,
    parentName: '电费统计',
  },
  // 中长期统计
  {
    field: 'mediumAndLongPower',
    name: '中长期价差结算电费',
    width: 100,
    parentName: '中长期统计',
  },
  {
    field: 'mediumAndLongQuantity',
    name: '中长期电量',
    width: 100,
    parentName: '中长期统计',
  },
  {
    field: 'mediumAndLongElectrovalence',
    name: '中长期电价',
    width: 100,
    parentName: '中长期统计',
  },
  {
    field: 'wholeNetworkElectrovalence',
    name: '用户侧结算参考点电价',
    width: 100,
    parentName: '中长期统计',
  },
  // 现货统计
  {
    field: 'spotGoodsPower',
    name: '现货电费',
    width: 100,
    parentName: '现货统计',
  },
  {
    field: 'spotGoodsQuantity',
    name: '计量电量',
    width: 100,
    parentName: '现货统计',
  },
  {
    field: 'spotGoodsElectrovalence',
    name: '实时节点电价',
    width: 100,
    parentName: '现货统计',
  },
  // 回收及补偿费用
  {
    field: 'recoveries',
    name: '回收费用',
    width: 100,
    parentName: '回收及补偿费用',
  },
  {
    field: 'compensationExpenses',
    name: '补偿费用',
    width: 100,
    parentName: '回收及补偿费用',
  },
  // {
  //   field: 'settlementAveragePrice',
  //   name: '结算均价',
  //   width: 100,
  //   parentName: '回收及补偿费用',
  // },
  // {
  //   field: 'averageContractPrice',
  //   name: '合约均价',
  //   width: 100,
  //   parentName: '回收及补偿费用',
  // },
];

export const SORT = {
  desc: 'desc',
  asc: 'asc',
};
